package com.zixuan.yuojbackendmodel.model.dto.question;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 创建请求
 *
 * @author <a href="https://github.com/liyupi">程序员鱼皮</a>
 * @from <a href="https://yupi.icu">编程导航知识星球</a>
 */
@Data
public class QuestionAddRequest implements Serializable {

    /**
     * 标题
     */
    private String title;

    /**
     * 内存
     */
    private String content;

    /**
     * 标签列表(json  数组)
     */
    private List<String> tags;

    /**
     * 题目答案
     */
    private String answer;

    /**
     * 判题用例(json 数组)
     */
    private List<JudgeCase> judgeCase;

    /**
     * 判题配置(json 对象)
     */
    private JudgeConfig judgeConfig;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "QuestionAddRequest{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", tags=" + tags +
                ", answer='" + answer + '\'' +
                ", judgeCase=" + judgeCase +
                ", judgeConfig=" + judgeConfig +
                '}';
    }
}
